package com.itshare.video.controller;

import com.itshare.video.common.dto.Result;
import com.itshare.video.service.CategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author lyr
 * @create 2020/10/24 21:38
 */
@RestController
@RequestMapping("/api/")
public class CategoryController {
    @Resource
    private CategoryService categoryService;
    @GetMapping("/category")
    public Result<?> categoryResult() {
        return categoryService.getCategoryList();
    }



}
